﻿#region

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Reflection;

#endregion

namespace JsMapper.BO
{
    public class JsModel<T> : IJsModel where T : class
    {   
        public JsModel()
        {
            ModelType = typeof (T);
        }

        public string Name { get; set; }
        public string JsNamespace { get; set; }
        public string Url { get; set; }
        public List<PropertyInfo> Properties { get; set; }
        public PropertyInfo IdProperty { get; set; }
        public Dictionary<PropertyInfo, ValidationAttribute[]> Validations { get; set; }
        public Dictionary<PropertyInfo, DefaultValueAttribute> DefaultValues { get; set; }
        public Type ModelType { get; set; }
    }
}